/**
 * Created by moonlight on 2015/6/11.
 */
/*
    reply-area
 */
$(document).ready(function(){

   //$('#btn-reply').click(function(){
   //    param = $('.reply').serialize();
   //    action = $('.reply').attr('action');
   //    console.log(param);
   //    $.post(action,param,function(data){
   //         console.log('1');
   //    });
   //});
});
function show(area_id){
    if(area_id==1){
        location.href = '/finder/Home/Blog/foundIndex';
    }
    if(area_id==2){
        location.href = '/finder/Home/Blog/Index';
    }
    if(area_id==3){
        location.href = '/finder/Home/Blog/energyIndex';
    }
    if(area_id==4){
        location.href = '/finder/Home/Blog/negativeEnergyIndex';
    }
}
/*function show(area_id){
    param = {'area_id':area_id};
    action  =   '/finder/Home/Blog/getBlogLists?area_id='+ area_id;
    console.log('1');
    $.post(action,param,function(data){

       console.log(data);
        block = '<block name="found"> <ul class="find-list"></ul></block>';
        $('#found').html(block);
        ul = ''
        $.each(data,function(i,value){
            console.log(i);
            console.log(value);
            li = '';
            li +='<li class="clearfix"><div class="li-block">' + '<h4><a href="">' + value.blog_title + '</a></h4>' +
            '<p class="text-right"> <a href="" class="aw-username">' + value.user_name + '</a> <span>发布于' + value.blog_date + ' • </span> <a href="" class="aw-username">' + value.last_reply_user + '</a> <span>回复了问题 • '+ value.replies_num +' 个回复 • 27 次浏览</span> </p>'+ '</div></li>';
            ul += li;
        });
        $('#found .find-list').html(ul);
    });
}*/